harborAddr = harbor.apulis.cn:8443
tag = aistudio-v0.1.0-rc4

run:
	# cd cmd; go build -buildmode=pie -o ../bin/bff-apflow -v; strip ../bin/bff-apflow; ../bin/bff-apflow;
	go run ./main/apedge.go 

get-deps:
	git submodule init
	git submodule update

image:
	docker build . -f ./dockerfile/dockerfile -t harbor.apulis.cn:8443/aistudio/apulistech/apedge:$(tag)
	docker push harbor.apulis.cn:8443/aistudio/apulistech/apedge:$(tag)

vet-check-all: get-deps
	go vet ./...

gosec-check-all: get-deps
	gosec ./...

image-pause:
	docker build . -f ./dockerfile/dockerfile -t $(harborAddr)/huawei630/apulistech/bff-apflow-backend:pause
	docker push $(harborAddr)/huawei630/apulistech/bff-apflow-backend:pause